<!DOCTYPE html>
<html>
<head>
    <meta name="layout" content="main"/>
    <g:set var="entityName" value="${message(code: 'estate.label', default: 'Estate')}"/>
    <title>编辑房产</title>
</head>

<body>
<div class="small-header">
    <div class="hpanel">
        <div class="panel-body">
            <div id="hbreadcrumb" class="pull-right">
                <ol class="hbreadcrumb breadcrumb">
                    <li>PLS CINDATA</li>
                    <li class="active">
                        <span>编辑房产</span>
                    </li>
                </ol>
            </div>

            <h2 class="font-light m-b-xs">
                编辑房产
            </h2>
        </div>
    </div>
</div>

<div class="content animate-panel">
    <div class="row">
        <div class="hpanel hblue">
            <div class="panel-heading">
                编辑房产
            </div>

            <div class="panel-body form-horizontal">
                <g:form action="estateUpdate">
                    <g:if test="${flash.message}">
                        <div class="message alert alert-info" role="status">${flash.message}</div>
                    </g:if>
                    <g:hasErrors bean="${this.estate}">
                        <ul class="errors" role="alert">
                            <g:eachError bean="${this.estate}" var="error">
                                <li <g:if test="${error in org.springframework.validation.FieldError}">data-field-id="${error.field}"</g:if>><g:message
                                        error="${error}"/></li>
                            </g:eachError>
                        </ul>
                    </g:hasErrors>

                    <div class="form-group">
                        <label class="col-md-2 control-label is-required">编号</label>
                        <div class="col-md-3">
                            <input type="hidden" name="id" id="id" value="${this.estate?.id}">
                            <input class="form-control" type="text" name="externalId" id="externalId" value="${this.estate?.externalId}" readonly="true"/>
                        </div>
                        <label class="col-md-2 control-label is-required">省份</label>
                        <div class="col-md-3">
                            <g:select class="form-control m-b" name="province" id="province" from="${com.cindata.Province.list()}" optionValue="name" optionKey="id" value="${this.estate?.province?.id}" noSelection="${['': '请选择省份']}"/>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-md-2 control-label is-required">市</label>
                        <div class="col-md-3">
                            <g:select class="form-control m-b" name="city" id="city" from="${com.cindata.City.findAllByNameInList(new com.cindata.ComponentService().evaluate(com.cindata.Component.findByCode('showCity')), [sort: 'name', order: 'asc'])}" optionValue="name" optionKey="id" value="${this.estate?.city?.id}" noSelection="${['': '请选择市']}"/>
                        </div>

                        <label class="col-md-2 control-label is-required">区域</label>
                        <div class="col-md-3">
                            <g:select class="form-control m-b" name="district" id="district" from="${com.cindata.District.list()}" optionValue="name" optionKey="id" value="${this.estate?.district?.id}" noSelection="${['': '请选择区域']}"/>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-md-2 control-label is-required">押品状态</label>
                        <div class="col-md-3">
                            <g:select class="form-control m-b" name="estateStatus" id="estateStatus" from="${com.cindata.dictionary.EstateStatusDict.list()}" optionValue="name" optionKey="id" value="${this?.estate?.estateStatus?.id}" noSelection="${['': '请选择押品状态']}"/>
                        </div>
                        <label class="col-md-2 control-label is-required">是否押品</label>
                        <div class="col-md-3">
                            <g:select class="form-control" name="isEstate" id="isEstate" from="${[[name:'是',value:'true'],[name:'否',value:'false']]}" optionKey="value" optionValue="name" value="${this?.estate?.isEstate}" />
                        </div>
                    </div>


                    <div class="form-group">
                        <label class="col-md-2 control-label is-required">小区名</label>
                        <div class="col-md-3">
                            <g:textField class="form-control" type="text" name="communityName" id="communityName" value="${this.estate?.communityName}"/>
                        </div>
                        <label class="col-md-2 control-label is-required">街道名</label>
                        <div class="col-md-3">
                            <g:textField class="form-control" type="text" name="streetName" id="streetName" value="${this.estate?.streetName}"/>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-md-2 control-label is-required">小区地址</label>
                        <div class="col-md-3">
                            <g:textField class="form-control" type="text" name="communityAddress" id="communityAddress" value="${this.estate?.communityAddress}"/>
                        </div>
                        <label class="col-md-2 control-label is-required">楼栋名</label>
                        <div class="col-md-3">
                            <g:textField class="form-control" type="text" name="buildingName" id="buildingName" value="${this.estate?.buildingName}"/>
                        </div>
                    </div>


                    <div class="form-group">

                        <label class="col-md-2 control-label is-required">单元名</label>
                        <div class="col-md-3">
                            <g:textField class="form-control" type="text" name="unitName" id="unitName" value="${this.estate?.unitName}"/>
                        </div>
                        <label class="col-md-2 control-label is-required">房屋名</label>
                        <div class="col-md-3">
                            <g:textField class="form-control" type="text" name="houseName" id="houseName" value="${this.estate?.houseName}"/>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-md-2 control-label is-required">总楼栋数</label>
                        <div class="col-md-3">
                            <g:textField class="form-control" type="text" name="totalBuildingNum" id="totalBuildingNum" value="${this.estate?.totalBuildingNum}"/>
                        </div>
                        <label class="col-md-2 control-label is-required">总房屋数</label>
                        <div class="col-md-3">
                            <g:textField class="form-control" type="text" name="totalHouseNum" id="totalHouseNum" value="${this.estate?.totalHouseNum}"/>
                        </div>
                    </div>

                    <div class="form-group">

                        <label class="col-md-2 control-label is-required">建筑年份</label>
                        <div class="col-md-3">
                            <g:textField class="form-control" type="text" name="buildYear" id="buildYear" value="${this.estate?.buildYear}"/>
                        </div>
                    </div>

                    <div class="form-group">

                        <label class="col-md-2 control-label is-required">建筑面积</label>
                        <div class="col-md-3">
                            <g:textField class="form-control" type="text" name="buildArea" id="buildArea" value="${this.estate?.buildArea}"/>
                        </div>
                        <label class="col-md-2 control-label is-required">建筑类型</label>
                        <div class="col-md-3">
                            <g:select class="form-control m-b" name="buildingType" id="buildingType" from="${com.cindata.dictionary.BuildingTypeDict.list()}" optionValue="name" optionKey="id" value="${this?.estate?.buildingType?.id}" noSelection="${['': '建筑类型']}"/>
                        </div>
                    </div>

                    <div class="form-group">

                        <label class="col-md-2 control-label is-required">评估单价</label>
                        <div class="col-md-3">
                            <g:textField class="form-control" type="text" name="unitPrice" id="unitPrice" value="${this.estate?.unitPrice}"/>
                        </div>
                        <label class="col-md-2 control-label is-required">评估总价</label>
                        <div class="col-md-3" >
                            <g:textField class="form-control" type="text" name="totalPrice" id="totalPrice" value="${this.estate?.totalPrice}"/>
                        </div>
                    </div>

                    <div class="form-group">

                        <label class="col-md-2 control-label is-required">抵押率</label>
                        <div class="col-md-3">
                            <g:textField class="form-control" type="text" name="ltv" id="ltv" value="${this.estate?.ltv}"/>
                        </div>
                        <label class="col-md-2 control-label is-required">动态抵押率</label>
                        <div class="col-md-3">
                            <g:textField class="form-control" type="text" name="cltv" id="cltv" value="${this.estate?.cltv}"/>
                        </div>
                    </div>

                    <div class="form-group">

                        <label class="col-md-2 control-label is-required">押品地址</label>
                        <div class="col-md-3">
                            <g:textField class="form-control" type="text" name="sourceAddress" id="sourceAddress" value="${this.estate?.sourceAddress}"/>
                        </div>
                        <label class="col-md-2 control-label is-required">押品建筑面积</label>
                        <div class="col-md-3">
                            <g:textField class="form-control" type="text" name="sourceBuildArea" id="sourceBuildArea" value="${this.estate?.sourceBuildArea}"/>
                        </div>
                    </div>

                    <div class="form-group">

                        <label class="col-md-2 control-label is-required">押品总楼层</label>
                        <div class="col-md-3">
                            <g:textField class="form-control" type="text" name="sourceTotalFloor" id="sourceTotalFloor" value="${this.estate?.sourceTotalFloor}"/>
                        </div>
                        <label class="col-md-2 control-label is-required">押品当前楼层</label>
                        <div class="col-md-3">
                            <g:textField class="form-control" type="text" name="sourceCurrentFloor" id="sourceCurrentFloor" value="${this.estate?.sourceCurrentFloor}"/>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-md-2 control-label is-required">贷款评估总价</label>
                        <div class="col-md-3">
                            <g:textField class="form-control" type="text" name="loansEvaluateTotalPrice" id="loansEvaluateTotalPrice" value="${this.estate?.loansEvaluateTotalPrice}"/>
                        </div>
                        <label class="col-md-2 control-label is-required">贷款评估单价</label>
                        <div class="col-md-3">
                            <g:textField class="form-control" type="text" name="loansEvaluatePrice" id="loansEvaluatePrice" value="${this.estate?.loansEvaluatePrice}"/>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-md-2 control-label is-required">贷款金额</label>
                        <div class="col-md-3">
                            <g:textField class="form-control" type="text" name="loansAmount" id="loansAmount" value="${this.estate?.loansAmount}"/>
                        </div>
                        <label class="col-md-2 control-label is-required">贷款余额</label>
                        <div class="col-md-3">
                            <g:textField class="form-control" type="text" name="loansBalance" id="loansBalance" value="${this.estate?.loansBalance}"/>
                        </div>
                    </div>

                    <div class="form-group">

                        <label class="col-md-2 control-label is-required">开始日期</label>
                        <div class="col-md-3">
                            <div class="input-daterange input-group p-r-n">
                                <g:datePicker class="form-control" name="startDate" value="${this.estate?.startDate}" precision="minute"/>
                            </div>
                        </div>
                        <label class="col-md-2 control-label is-required">结束日期</label>
                        <div class="col-md-3">
                            <div class="input-daterange input-group p-r-n">
                                <g:datePicker class="form-control" name="endDate" value="${this.estate?.endDate}" precision="minute"/>
                            </div>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-md-2 control-label is-required">匹配时间</label>
                        <div class="col-md-3">
                            <div class="input-daterange input-group p-r-n">
                                <g:datePicker class="form-control" name="matchDate" value="${this.estate?.matchDate}" precision="minute"/>
                            </div>
                        </div>
                        <label class="col-md-2 control-label is-required">评估时间</label>
                        <div class="col-md-3">
                            <div class="input-daterange input-group p-r-n">
                                <g:datePicker class="form-control" name="valuationDate" value="${this.estate?.valuationDate}" precision="minute"/>
                            </div>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-md-2 control-label is-required">经度</label>
                        <div class="col-md-3">
                            <g:textField class="form-control" type="text" name="x" id="x" value="${this.estate?.x}"/>
                        </div>
                        <label class="col-md-2 control-label is-required">纬度</label>
                        <div class="col-md-3">
                            <g:textField class="form-control" type="text" name="y" id="y" value="${this.estate?.y}"/>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-md-2 control-label is-required">最初应还款期数（月）</label>
                        <div class="col-md-3">
                            <g:textField class="form-control" type="text" name="loansDuration" id="loansDuration" value="${this.estate?.loansDuration}"/>
                        </div>
                        <label class="col-md-2 control-label is-required">当前剩余还款期数（月）</label>
                        <div class="col-md-3">
                            <g:textField class="form-control" type="text" name="remainTime" id="remainTime" value="${this.estate?.remainTime}"/>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-md-2 control-label is-required">直属管理机构(银行网点)</label>
                        <div class="col-md-3">
                            <g:select class="form-control m-b" name="account" id="account" from="${com.cindata.Account.findAllByType(com.cindata.dictionary.AccountTypeDict.findByCode("BankAccount"))}" optionValue="name" optionKey="id" value="${this?.estate?.account?.id}" noSelection="${['': '请选择直属管理机构(银行网点)']}"/>
                        </div>
                        <label class="col-md-2 control-label is-required">所属开发商</label>
                        <div class="col-md-3">
                            <g:select class="form-control m-b" name="developer" id="developer" from="${com.cindata.Developer.list()}" optionValue="name" optionKey="id" value="${this?.estate?.developer?.id}" noSelection="${['': '请选择所属开发商']}"/>

                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-md-2 control-label is-required">价值波动率</label>
                        <div class="col-md-3">
                            <g:select class="form-control m-b" name="priceFluctuationsRatio" id="priceFluctuationsRatio" from="${com.cindata.Estate.constrainedProperties.priceFluctuationsRatio.inList}" optionValue="" optionKey="" value="${this?.estate?.priceFluctuationsRatio}" noSelection="${['': '请选择价值波动率']}"/>
                        </div>
                        <label class="col-md-2 control-label is-required">风险预警处理类型</label>
                        <div class="col-md-3">
                            <g:select class="form-control m-b" name="dealType" id="dealType" from="${com.cindata.dictionary.RiskWarningDealTypeDict.list()}" optionValue="name" optionKey="id" value="${this?.estate?.dealType?.id}" noSelection="${['': '请选择风险预警处理类型']}"/>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-md-2 control-label is-required">抵押权人</label>
                        <div class="col-md-3">
                            <g:textField class="form-control" type="text" name="accountName" id="accountName" value="${this.estate?.accountName}"/>
                        </div>
                        <label class="col-md-2 control-label is-required">权利种类</label>
                        <div class="col-md-3">
                            <g:select class="form-control m-b" name="loanRightsType" id="loanRightsType" from="${com.cindata.dictionary.LoanRightsTypeDict.list()}" optionValue="name" optionKey="id" value="${this?.estate?.loanRightsType?.id}" noSelection="${['': '请选择权利种类']}"/>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-md-2 control-label is-required">贷款性质</label>
                        <div class="col-md-3">
                            <g:select class="form-control m-b" name="loanProperties" id="loanProperties" from="${com.cindata.dictionary.LoanPropertiesDict.list()}" optionValue="name" optionKey="id" value="${this?.estate?.loanProperties?.id}" noSelection="${['': '请选择贷款性质']}"/>
                        </div>
                        <label class="col-md-2 control-label is-required">房地售价</label>
                        <div class="col-md-3">
                            <g:textField class="form-control" type="text" name="soldPrice" id="soldPrice" value="${this.estate?.soldPrice}"/>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-md-2 control-label is-required">套内面积</label>
                        <div class="col-md-3">
                            <g:textField class="form-control" type="text" name="actuallyUseArea" id="actuallyUseArea" value="${this.estate?.actuallyUseArea}"/>
                        </div>
                        <label class="col-md-2 control-label is-required">分摊面积</label>
                        <div class="col-md-3">
                            <g:textField class="form-control" type="text" name="sharedUseArea" id="sharedUseArea" value="${this.estate?.sharedUseArea}"/>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-md-2 control-label is-required">房屋性质</label>
                        <div class="col-md-3">
                            <g:select class="form-control m-b" name="houseNature" id="houseNature" from="${com.cindata.dictionary.HouseNatureDict.list()}" optionValue="name" optionKey="id" value="${this?.estate?.houseNature?.id}" noSelection="${['': '请选择房屋性质']}"/>
                        </div>
                        <label class="col-md-2 control-label is-required">是否不良</label>
                        <div class="col-md-3">
                            <g:select class="form-control" name="isNonPerformingAsset" id="isNonPerformingAsset" from="${[[name:'是',value:'true'],[name:'否',value:'false']]}" optionKey="value" optionValue="name" value="${this.estate?.isNonPerformingAsset}" />
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-md-2 control-label is-required">联系人</label>
                        <div class="col-md-3">
                            <g:textField class="form-control" type="text" name="contactFullName" id="contactFullName" value="${this.estate?.contactFullName}"/>
                        </div>
                        <label class="col-md-2 control-label is-required">联系电话</label>
                        <div class="col-md-3">
                            <g:textField class="form-control" type="text" name="contactCellphone" id="contactCellphone" value="${this.estate?.contactCellphone}"/>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-md-2 control-label is-required">土地面积</label>
                        <div class="col-md-3">
                            <g:textField class="form-control" type="text" name="loadArea" id="loadArea" value="${this.estate?.loadArea}"/>
                        </div>
                        <label class="col-md-2 control-label is-required">拍卖价格</label>
                        <div class="col-md-3">
                            <g:textField class="form-control" type="text" name="auctionPrice" id="auctionPrice" value="${this.estate?.auctionPrice}"/>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-md-2 control-label is-required">质押物名称</label>
                        <div class="col-md-3">
                            <g:textField class="form-control" type="text" name="name" id="name" value="${this.estate?.id}"/>
                        </div>
                        <label class="col-md-2 control-label is-required">房屋所有权证书号码（所有权编号）</label>
                        <div class="col-md-3">
                            <g:textField class="form-control" type="text" name="ownershipNumber" id="ownershipNumber" value="${this.estate?.ownershipNumber}"/>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-md-2 control-label is-required">抵押人名称</label>
                        <div class="col-md-3">
                            <g:textField class="form-control" type="text" name="fullName" id="fullName" value="${this.estate?.fullName}"/>
                        </div>
                        <label class="col-md-2 control-label is-required">抵押人证件类型</label>
                        <div class="col-md-3">
                            <g:select class="form-control m-b" name="identityType" id="identityType" from="${com.cindata.dictionary.ContactIdentityType.list()}" optionValue="name" optionKey="id" value="${this?.estate?.identityType?.id}" noSelection="${['': '请选择抵押人证件类型']}"/>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-md-2 control-label is-required">抵押人证件号码</label>
                        <div class="col-md-3">
                            <g:textField class="form-control" type="text" name="idNumber" id="idNumber" value="${this.estate?.idNumber}"/>
                        </div>
                        <label class="col-md-2 control-label is-required">抵押人贷款卡编号</label>
                        <div class="col-md-3">
                            <g:textField class="form-control" type="text" name="loanCardNumber" id="loanCardNumber" value="${this.estate?.loanCardNumber}"/>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-md-2 control-label is-required">其他共同所有人</label>
                        <div class="col-md-3">
                            <g:textField class="form-control" type="text" name="commonOwnerFullName" id="commonOwnerFullName" value="${this.estate?.commonOwnerFullName}"/>
                        </div>
                        <label class="col-md-2 control-label is-required">所占份额</label>
                        <div class="col-md-3">
                            <g:textField class="form-control" type="text" name="sharePoint" id="sharePoint" value="${this.estate?.sharePoint}"/>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-md-2 control-label is-required">此抵押物是否当前申请所购资产</label>
                        <div class="col-md-3">
                            <g:select class="form-control" name="isApplayPurchaseAsset" id="isApplayPurchaseAsset" from="${[[name:'是',value:'true'],[name:'否',value:'false']]}" optionKey="value" optionValue="name" value="${this.estate?.isApplayPurchaseAsset?"是":"否"}" />
                        </div>
                        <label class="col-md-2 control-label is-required">抵押权顺位</label>
                        <div class="col-md-3">
                            <g:textField class="form-control" type="text" name="rightOfMortgage" id="rightOfMortgage" value="${this.estate?.rightOfMortgage}"/>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-md-2 control-label is-required">在先担保金额</label>
                        <div class="col-md-3">
                            <g:textField class="form-control" type="text" name="firstGuaranteedAmount" id="firstGuaranteedAmount" value="${this.estate?.firstGuaranteedAmount}"/>
                        </div>
                        <label class="col-md-2 control-label is-required">使用情况</label>
                        <div class="col-md-3">
                            <g:textField class="form-control" type="text" name="usage" id="usage" value="${this.estate?.usage}"/>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-md-2 control-label is-required">承租人</label>
                        <div class="col-md-3">
                            <g:textField class="form-control" type="text" name="lessee" id="lessee" value="${this.estate?.lessee}"/>
                        </div>
                        <label class="col-md-2 control-label is-required">租赁起始日期</label>
                        <div class="col-md-3">
                            <div class="input-daterange input-group p-r-n">
                                <g:datePicker class="form-control" name="leaseStartDate" value="${this.estate?.leaseStartDate}" precision="minute"/>
                            </div>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-md-2 control-label is-required">租赁到期日期</label>
                        <div class="col-md-3">
                            <div class="input-daterange input-group p-r-n">
                                <g:datePicker class="form-control" name="leaseEndDate" value="${this.estate?.leaseEndDate}" precision="minute"/>
                            </div>
                        </div>
                        <label class="col-md-2 control-label is-required">年租金（万元）</label>
                        <div class="col-md-3">
                            <g:textField class="form-control" type="text" name="annualRents" id="annualRents" value="${this.estate?.annualRents}"/>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-md-2 control-label is-required">购买总价</label>
                        <div class="col-md-3">
                            <g:textField class="form-control" type="text" name="purchaseTotalPrice" id="purchaseTotalPrice" value="${this.estate?.purchaseTotalPrice}"/>
                        </div>
                        <label class="col-md-2 control-label is-required">购买单价</label>
                        <div class="col-md-3">
                            <g:textField class="form-control" type="text" name="purchaseUnitPrice" id="purchaseUnitPrice" value="${this.estate?.purchaseUnitPrice}"/>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-md-2 control-label is-required">首付款</label>
                        <div class="col-md-3">
                            <g:textField class="form-control" type="text" name="firstPayment" id="firstPayment" value="${this.estate?.firstPayment}"/>
                        </div>
                        <label class="col-md-2 control-label is-required">币种</label>
                        <div class="col-md-3">
                            <g:select class="form-control m-b" name="currency" id="currency" from="${com.cindata.dictionary.CurrencyDict.list()}" optionValue="name" optionKey="id" value="${this?.estate?.currency?.id}" noSelection="${['': '请选择币种']}"/>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-md-2 control-label is-required">房龄</label>
                        <div class="col-md-3">
                            <g:textField class="form-control" type="text" name="age" id="age" value="${this.estate?.age}"/>
                        </div>
                        <label class="col-md-2 control-label is-required">有无土地使用权证书</label>
                        <div class="col-md-3">
                            <g:select class="form-control" name="landUsageCertificate" id="landUsageCertificate" from="${[[name:'是',value:'true'],[name:'否',value:'false']]}" optionKey="value" optionValue="name" value="${this.estate?.landUsageCertificate}" />
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-md-2 control-label is-required" style="padding: 0;padding-top: 8px;">土地使用权证书号码（土地使用权证编号）</label>
                        <div class="col-md-3">
                            <g:textField class="form-control" type="text" name="landUsageCertificateNo" id="landUsageCertificateNo" value="${this.estate?.landUsageCertificateNo}"/>
                        </div>
                        <label class="col-md-2 control-label is-required">是否已办理抵押登记</label>
                        <div class="col-md-3">
                            <g:select class="form-control" name="mortgageRegistration" id="mortgageRegistration" from="${[[name:'是',value:'true'],[name:'否',value:'false']]}" optionKey="value" optionValue="name" value="${this.estate?.mortgageRegistration}" />
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-md-2 control-label is-required">抵押登记机构</label>
                        <div class="col-md-3">
                            <g:textField class="form-control" type="text" name="mortgageRegistrationOrg" id="mortgageRegistrationOrg" value="${this.estate?.mortgageRegistrationOrg}"/>
                        </div>
                        <label class="col-md-2 control-label is-required">他项权利证书号码</label>
                        <div class="col-md-3">
                            <g:textField class="form-control" type="text" name="hisWarrantNumber" id="hisWarrantNumber" value="${this.estate?.hisWarrantNumber}"/>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-md-2 control-label is-required">查封情况</label>
                        <div class="col-md-3">
                            <g:textField class="form-control" type="text" name="sealUpSituation" id="sealUpSituation" value="${this.estate?.sealUpSituation}"/>
                        </div>
                        <label class="col-md-2 control-label is-required">查封顺位</label>
                        <div class="col-md-3">
                            <g:textField class="form-control" type="text" name="sealUpRights" id="sealUpRights" value="${this.estate?.sealUpRights}"/>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-md-2 control-label is-required">查封法院</label>
                        <div class="col-md-3">
                            <g:textField class="form-control" type="text" name="sealUpAccount" id="sealUpAccount" value="${this.estate?.sealUpAccount}"/>
                        </div>
                        <label class="col-md-2 control-label is-required">查封时间</label>
                        <div class="col-md-3">
                            <div class="input-daterange input-group p-r-n">
                                <g:datePicker class="form-control" name="sealUpDate" value="${this.estate?.sealUpDate}" precision="minute"/>
                            </div>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-md-2 control-label is-required">前手查封人</label>
                        <div class="col-md-3">
                            <g:textField class="form-control" type="text" name="forwardHand" id="forwardHand" value="${this.estate?.forwardHand}"/>
                        </div>
                        <label class="col-md-2 control-label is-required">当前查封物执行情况</label>
                        <div class="col-md-3">
                            <g:textField class="form-control" type="text" name="situationOfCurrentSeal" id="situationOfCurrentSeal" value="${this.estate?.situationOfCurrentSeal}"/>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-md-2 control-label is-required">处置金额</label>
                        <div class="col-md-3">
                            <g:textField class="form-control" type="text" name="disposalAmount" id="disposalAmount" value="${this.estate?.disposalAmount}"/>
                        </div>
                        <label class="col-md-2 control-label is-required">变现能力</label>
                        <div class="col-md-3">
                            <g:select class="form-control m-b" name="cashability" id="cashability" from="${com.cindata.dictionary.Cashability.list()}" optionValue="name" optionKey="id" value="${this?.estate?.cashability?.id}" noSelection="${['': '请选择变现能力']}"/>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-md-2 control-label is-required">价值波动性</label>
                        <div class="col-md-3">
                            <g:textField class="form-control" type="text" name="valueVolatility" id="valueVolatility" value="${this.estate?.valueVolatility}"/>
                        </div>
                        <label class="col-md-2 control-label is-required">查封便利性</label>
                        <div class="col-md-3">
                            <g:textField class="form-control" type="text" name="seizureOfConvenience" id="seizureOfConvenience" value="${this.estate?.seizureOfConvenience}"/>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-md-2 control-label is-required">抵质押物与借款人相关性</label>
                        <div class="col-md-3">
                            <g:textField class="form-control" type="text" name="relationOfMortgagor" id="relationOfMortgagor" value="${this.estate?.relationOfMortgagor}"/>
                        </div>
                        <label class="col-md-2 control-label is-required">法律有效性</label>
                        <div class="col-md-3">
                            <g:textField class="form-control" type="text" name="legalValidity" id="legalValidity" value="${this.estate?.legalValidity}"/>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-md-2 control-label is-required">初次评估价值</label>
                        <div class="col-md-3">
                            <g:textField class="form-control" type="text" name="firstEvaluatePrice" id="firstEvaluatePrice" value="${this.estate?.firstEvaluatePrice}"/>
                        </div>
                        <label class="col-md-2 control-label is-required">初次评估机构</label>
                        <div class="col-md-3">
                            <g:select class="form-control m-b" name="firstEvaluateAccount" id="firstEvaluateAccount" from="${com.cindata.Account.findAllByType(com.cindata.dictionary.AccountTypeDict.EVALUATE())}" optionValue="name" optionKey="id" value="${this.estate?.firstEvaluateAccount}" noSelection="${['': '请选择初次评估机构']}"/>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-md-2 control-label is-required">最新评估价值</label>
                        <div class="col-md-3">
                            <g:textField class="form-control" type="text" name="latestEvaluatePrice" id="latestEvaluatePrice" value="${this.estate?.latestEvaluatePrice}"/>
                        </div>
                        <label class="col-md-2 control-label is-required">最新评估机构</label>
                        <div class="col-md-3">
                            <g:select class="form-control m-b" name="latestEvaluateAccount" id="latestEvaluateAccount" from="${com.cindata.Account.findAllByType(com.cindata.dictionary.AccountTypeDict.EVALUATE())}" optionValue="name" optionKey="id" value="${this.estate?.latestEvaluateAccount}" noSelection="${['': '请选择最新评估机构']}"/>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-md-2 control-label is-required">最新评估日期</label>
                        <div class="col-md-3">
                            <div class="input-daterange input-group p-r-n">
                                <g:datePicker class="form-control" name="latestEvaluateDate" value="${this.estate?.latestEvaluateDate}" precision="minute"/>
                            </div>
                        </div>
                        <label class="col-md-2 control-label is-required">下次评估日期</label>
                        <div class="col-md-3">
                            <div class="input-daterange input-group p-r-n">
                                <g:datePicker class="form-control" name="nextEvaluateDate" value="${this.estate?.nextEvaluateDate}" precision="minute"/>
                            </div>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-md-2 control-label is-required">实际抵质押率</label>
                        <div class="col-md-3">
                            <g:textField class="form-control" type="text" name="actualMortgageRate" id="actualMortgageRate" value="${this.estate?.actualMortgageRate}"/>
                        </div>
                        <label class="col-md-2 control-label is-required">抵质押率上限</label>
                        <div class="col-md-3">
                            <g:textField class="form-control" type="text" name="mortgageRateUpperLimit" id="mortgageRateUpperLimit" value="${this.estate?.mortgageRateUpperLimit}"/>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-md-2 control-label is-required">抵质押物说明</label>
                        <div class="col-md-3">
                            <g:textField class="form-control" type="text" name="description" id="description" value="${this.estate?.description}"/>
                        </div>
                        <label class="col-md-2 control-label is-required">登记人</label>
                        <div class="col-md-3">
                            <g:textField class="form-control" type="text" name="registerFullName" id="registerFullName" value="${this.estate?.registerFullName}"/>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-md-2 control-label is-required">登记机构</label>
                        <div class="col-md-3">
                            <g:textField class="form-control" type="text" name="registerAccount" id="registerAccount" value="${this.estate?.registerAccount}"/>
                        </div>
                        <label class="col-md-2 control-label is-required">登记日期</label>
                        <div class="col-md-3">
                            <g:textField class="form-control" type="text" name="registerDate" id="registerDate" value="${this.estate?.registerDate}"/>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-md-2 control-label is-required">更新日期</label>
                        <div class="col-md-3">
                            <g:textField class="form-control" type="text" name="registerUpdateDate" id="registerUpdateDate" value="${this.estate?.registerUpdateDate}"/>
                        </div>
                    </div>


                    <div class="form-group">
                        <div class="col-md-3 col-md-offset-6">
                            <g:submitButton class="btn btn-info" name="update" value="保存"/>
                        </div>
                    </div>
                </g:form>
            </div>
        </div>
    </div>
</div>
<g:javascript>
    $(function () {
        $('.datepicker1').datepicker({
            language: 'zh-CN'
        });
        $('.input-group.date').datepicker({ });
        $('.input-daterange').datepicker({ });
    });
</g:javascript>
</body>
</html>
